package com.greet;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableCaching(proxyTargetClass = true)  //开启Spring Cache缓存注解的功能
@EnableScheduling //开启定时任务调度
@SpringBootApplication
@EnableTransactionManagement //注解方式事务管理
@Slf4j

public class GreetApplication {
    public static void main(String[] args) {
        SpringApplication.run(GreetApplication.class, args);
        log.info("server start");
    }
}
